import { OperateItem } from "./OperateItem";
import { OperateInfo } from "../../../model/OperateInfo";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { HTMLUtil } from "../../../../../com/gengine/utils/HTMLUtil";
//class OperateMarryItem
    
    export  class OperateMarryItem extends OperateItem
    {
        constructor()
        {
            super();
            _operateText.x = 35;
            _operateText.y = 10;
            return;
        }

        public /* override */ updateData(arg1: OperateInfo): void
        {
            _operateInfo = arg1;
            _operateIcon.bitmapData = GlobalClass.getBitmapData(arg1.icon);
            _operateText.htmlText = HTMLUtil.addColor("<u><a href=\'event: 0\'>" + arg1.operateDes + "</a></u>" + " " + HTMLUtil.addColor(arg1.extendDes, "#00ff00"), "#ffff00");
            return;
        }

        public /* override */ dispose(): void
        {
            _operateInfo = null;
            _operateText.htmlText = "";
            return;
        }

        public /* override */ get height(): number
        {
            return 33;
        }
    }
